<?php
namespace app\yunda\model;

use think\Model;
use traits\model\SoftDelete;

/**
 * 设置
 * @package app\yunda\model
 */
class System extends Model
{
    use SoftDelete;
    protected $table = 'dp_yd_system';
    protected $autoWriteTimestamp = true;


    //获取配置值
    public static function getSystemConfig($config_name='no_name')
    {
        $row=self::get(['config_name'=>$config_name]);
        if(empty($row))return '配置不存在';
        return $row['config_value'];
    }

}
